package com.dashang.entity;

import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 用户信息类
 *
 * @author 陈兴
 * @version [版本号, 2011-8-24]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class UserInfo
{
    /**
     * id
     */
    private int id;

    /**
     * 登录帐号
     */
    private String loginName;

    /**
     * 登录密码
     */
    private String password;

    /**
     */
    private List<Role> roles;

    public String getLoginName()
    {
        return loginName;
    }

    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public List<Role> getRoles()
    {
        return roles;
    }

    public void setRoles(List<Role> roles)
    {
        this.roles = roles;
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    @Override
    public String toString()
    {
        return ToStringBuilder.reflectionToString(this,ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
